<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html; charset=gbk">
		<title>10ACCP2班级论坛 - Powered by 19#417</title>
		<link rel="stylesheet" type="text/css" href="css/style_1_common.css">
		<link rel="stylesheet" type="text/css"
			href="css/style_1_forum_index.css">
		<link rel="stylesheet" id="css_extstyle" type="text/css"
			href="css/style.css">
		<script src="js/common.js" type="text/javascript">
</script>
		<script src="js/forum.js" type="text/javascript">
</script>
		<script type="text/javascript">
function setHomePages() {
	document.documentElement.style.behavior = "url(#default#homepage)";
	document.documentElement.setHomePage('http://localhost:8080/Accp_BBS');

}
function addCookie() {
	if (document.all) {
		window.external.addFavorite('http://localhost:8080/Accp_BBS',
				'10ACCP2班级论坛');
	} else if (window.sidebar) {
		window.sidebar.addPanel('10ACCP2班级论坛',
				'http://localhost:8080/Accp_BBS', '');
	}
}
</script>
	</head>

	<body id="nv_forum" class="pg_index"
		onkeydown="if(event.keyCode==27) return false;">
		<div id="append_parent"></div>
		<div id="ajaxwaitid"></div>
		<div id="toptb" class="cl">
			<div class="wp">
				<div class="z">
					<a href="javascript:setHomePages()">设为首页</a><a
						href="javascript:addCookie()">收藏本站</a>
					<script type="text/javascript">
var _speedMark = new Date();</script>
				</div>
			</div>
		</div>
		<div id="hd">
			<div class="wp">
				<div class="hdc cl">
					<h2>
						<a href="index" title="10ACCP2论坛"><img src="images/ACCP2.png"
								alt="10ACCP2论坛" border="0"> </a>
					</h2>
					<%@ include file="user.jsp"%>
				</div>
				<div id="nv">
					<ul>
						<li class="a" id="mn_forum">
							<a href="index" hidefocus="true" title="BBS">论坛<span>BBS</span>
							</a>
						</li>
						<li id="mn_N12a7">
							<a href="index" hidefocus="true" title="Ranklist">班级<span>Class</span>
							</a>
						</li>
					</ul>
				</div>
			</div>
		</div>
		</div>
		<div id="wp" class="wp">
			<div id="pt" class="bm cl">
				<div class="y">
					<div id="an">
						<dl class="cl">
							</dd>
						</dl>
					</div>
				</div>
				<div class="z"></div>
			</div>
			<style id="diy_style" type="text/css">
</style>
			<div class="wp">
				<!--[diy=diy1]-->
				<div id="diy1" class="area"></div>
				<!--[/diy]-->
			</div>
			<div id="ct" class="wp cl">
				<div id="chart" class="bm bw0 cl">
					<p class="chart z">
						帖子:
						<em><s:property value="#request.allTopicCount" />
						</em><span class="pipe">|</span>回复:
						<em><s:property value="#request.allReplyCount" />
						</em><span class="pipe">|</span>会员:
						<em><s:property value="#request.allUserCount" />
						</em>
					</p>
					<div class="y">
						<s:if test="#session.user != null">
							<a href="topic-List?type=user" title="我的帖子" class="xi2">我的帖子</a>
							<span class="pipe">|</span>
						</s:if>
						<a href="topic-List?type=date" title="查看新帖" class="xi2">查看新帖</a>
					</div>
				</div>
				<div class="mn">
					<div class="fl bm">
						<div class="bm bmw  cl">
							<div class="bm_h cl">
								<span class="o"> <img id="category_3_img"
										src="images/collapsed_no.gif" title="收起/展开" alt="收起/展开">
								</span>
								<h2>
									<a href="#" style="">〓板块〓</a>
								</h2>
							</div>
							<div id="category_3" class="bm_c" style="">
								<table class="fl_tb" cellpadding="0" cellspacing="0">
									<tbody>
										<s:iterator value="#request.BBSSectionList" var="s"
											status="sList">
											<s:iterator value="#request.lastTopics" var="t">
												<s:if test="#t.tsid == #s.sid">
													<s:set value="#t" var="lastTopic" />
												</s:if>
											</s:iterator>
											<s:if test="#sList.index == 0">
												<tr>
											</s:if>
											<s:else>
												<tr class="fl_row">
											</s:else>
											<s:property value="" />
											<td class="fl_icn" style="width: 150px;">
												<a href="topic-List?sid=<s:property value="#s.sid" />"><img
														src="<s:property value="#s.simgUrl"/>" alt="" align="left">
												</a>
											</td>
											<td>
												<h2>
													<a href="topic-List?sid=<s:property value="#s.sid" />"
														style="color: red;"><s:property value="#s.sname" /> </a><em
														class="xw0 xi1" title="今日"> 
														(
														<s:iterator value="#request.todayReplyCount" var="count" status="replyCount">
															<s:if test="#count.key == #s.sid">
																<s:property value="#count.value"/>
															</s:if>
														</s:iterator>
														)</em>
												</h2>
												<p>
													<s:property value="#s.sstatement" />
												</p>
											</td>
											<td class="fl_i">
												<span class="xi2"><s:property value="#s.stopicCount" />
												</span><span class="xg1"> / <s:property
														value="#s.sclickCount" /> </span>
											</td>
											<td class="fl_by">
												<div>
													<a href="topic?tid=<s:property value="#lastTopic.tid" />"
														class="xi2"> <s:if
															test="#lastTopic.ttopic.length() > 15">
															<s:property value="#lastTopic.ttopic.substring(0,15)" />....
													</s:if> <s:else>
															<s:property value="#lastTopic.ttopic" />
														</s:else> </a>
													<cite><s:property value="#lastTopic.tlastClickT" />
														<s:property value="#lastTopic.user.uname" /> </cite>
												</div>
											</td>
											</tr>
										</s:iterator>
									</tbody>
								</table>
							</div>
						</div>
					</div>
					<div class="wp mtn">
						<!--[diy=diy3]-->
						<div id="diy3" class="area"></div>
						<!--[/diy]-->
					</div>
				</div>
			</div>
		</div>
		<div id="ft" class="wp cl">
			<div id="flk" class="y">
				<p>
					<strong><a href="#" target="_blank">10ACCP2论坛</a> </strong>
					&nbsp;&nbsp;
					<span id="tcss"></span>
				</p>
				<p class="xs0">
					19#417 &nbsp;&nbsp;版权所有 &nbsp;&nbsp;
					<span id="tcss"></span>
					</span>
				</p>
			</div>
			<div id="frt">
				<p>
					Powered by
					<strong><a href="#" target="_blank">19#417</a> </strong>
				</p>
				<p class="xs0">
					&#169; 2011-2012
					<a href="#" target="_blank">10ACCP2</a>
				</p>
			</div>
		</div>
		<div style="position: absolute; display: none; z-index: 9999;"
			id="livemargins_control">
			<img src="images/monitor-background-horizontal.png"
				style="position: absolute; left: -77px; top: -5px;" height="5"
				width="77">
			<img src="images/monitor-background-vertical.png"
				style="position: absolute; left: 0pt; top: -5px;">
			<img id="monitor-play-button" src="images/monitor-play-button.png"
				onmouseover="this.style.opacity=1"
				onmouseout="this.style.opacity=0.5"
				style="position: absolute; left: 1px; top: 0pt; opacity: 0.5; cursor: pointer;">
		</div>
	</body>
</html>